import fullLoading from './full-loading/index.vue'
// import veView from './ve-view'

const components = [
  fullLoading
  // veView
]

const install = (Vue) => {
  components.forEach((ele) => {
    Vue.component(ele.name, ele)
  })
}

/* 兼容cdn方式使用 */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

/* vue.use 使用 */
export default {
  version: '1.0.0',
  install
}
